//
//  goodsrecCell.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/1.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "goodsrecCell.h"
#import "AFNetworking.h"
#import "homePageCellModel.h"
#import "homePagecellmerchanModel.h"

#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height

@implementation goodsrecCell

- (void)dealloc
{
    [_backView release];
    [_bigImage release];
    [_smalltitleLabel release];
    [_collectImage release];
    [_collectLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.backView = [[UIView alloc]init];
        self.backView.backgroundColor = [UIColor whiteColor];
        [self.contentView addSubview:self.backView];
        [_backView release];
        
        self.bigImage = [[UIImageView alloc]init];
        //self.bigImage.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.bigImage];
        [_bigImage release];
        
        self.bigtitleLbael = [[UILabel alloc]init];
//        self.bigtitleLbael.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.bigtitleLbael];
        [_bigtitleLbael release];
        
        
        self.smalltitleLabel = [[UILabel alloc]init];
//        self.smalltitleLabel.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.smalltitleLabel];
        [_smalltitleLabel release];
        
        self.collectImage = [[UIImageView alloc]init];
        //self.collectImage.backgroundColor = [UIColor greenColor];
        [self.contentView addSubview:self.collectImage];
        [_collectImage release];
        
        self.collectLabel = [[UILabel alloc]init];
        //self.collectLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.collectLabel];
        [_collectLabel release];
        
        
        
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.contentView.backgroundColor = [UIColor whiteColor];
    self.backView.frame = CGRectMake(WIDTH / 24, 10, WIDTH / 1.1, 260);
    
    self.bigImage.frame = CGRectMake(WIDTH / 24, 10, WIDTH / 1.1, 180);
    
    self.bigtitleLbael.frame = CGRectMake(WIDTH / 23, 200, WIDTH / 1.1, 30);
    
    self.smalltitleLabel.frame = CGRectMake(WIDTH / 23, 235, 150, 30);
    self.smalltitleLabel.font = [UIFont boldSystemFontOfSize:15];
    
    self.collectImage.frame = CGRectMake(WIDTH / 1.3, 240, 20, 20);
    
    self.collectImage.image = [UIImage imageNamed:@"collect"];
    
    self.collectLabel.frame = CGRectMake(WIDTH / 1.17, 240, 50, 20);
    self.collectLabel.font = [UIFont boldSystemFontOfSize:15];
    
    
}






#pragma mark 解析数据过程





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
